<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../node_modules/axios/dist/axios.min.js"></script>
</head>
<body>
  
    <button>发送</button>
   
    <script>
        let btn = document.querySelector('button')
        btn.addEventListener('click',async()=>{
            let a1 = axios('http://api.liu.com:3000/movie/5');
            let a2 = axios('http://api.liu.com:3000/movie/6');

            axios.all([a1,a2]).then(([{data:data1},{data:data2}])=>{
                console.log(data1);
                console.log(data2);
            },rea=>{
                console.log(rea);
             
            });
        })
        
    </script>

</body>
</html>